package com.atguigu.gulimall.search.vo;

import com.atguigu.common.to.es.SkuEsModel;
import lombok.Data;
import org.w3c.dom.Attr;

import java.util.List;

@Data
public class SearchResult {
    private List<SkuEsModel> products;

    private Integer pageNum;

    private Long total;

    private Long totalPages;

    private List<BrandVo> brandVos;

    private List<AttrVo> attrVos;

    private List<CatalogVo> catalogVos;

    // 以上是返回给页面的信息

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
}
